package com.briup.jz.service;

import java.util.List;

import com.briup.jz.bean.Article;
import com.briup.jz.bean.extend.ArticleExtend;
import com.briup.jz.utils.CustomerException;

public interface IArticleService {
	
	void saveOrUpdate(Article article) throws CustomerException;

	List<Article> query(String title,String status,Long categoryId);

	void deleteById(long id) throws CustomerException;
	
	void cascadeFindAll() throws CustomerException;
	
	void changeStatus(String id,String status) throws CustomerException;
	
	void download() throws CustomerException;
	
	void findAllRecommend(String page,String pageSize) throws CustomerException;
	
	void findById(String id) throws CustomerException;
	
	void pageQuery(String page,String pageSize,String title,String status,String authorId,String categoryId) throws CustomerException;
	
	List<ArticleExtend> queryCascade(String title,String status,Long categoryId);

	ArticleExtend read(long id);

}
